package com.codeoss.framework.view.component;

import com.codeoss.framework.expression.Expression;
import com.codeoss.framework.view.component.chart.IChart;

public class Table extends Container implements IDataBindSource,IChart{
	private String dataSource;
	private boolean editable;
	private boolean pageable=true;
	private int pageSize=10;
	private Expression onPagination;
	private boolean multiSelect;
	private boolean halfEditable;
	private String formViewPageCode;
	private Expression onSort;
	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}
	
	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	public boolean isPageable() {
		return pageable;
	}

	public void setPageable(boolean pageable) {
		this.pageable = pageable;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Expression getOnPagination() {
		return onPagination;
	}

	public void setOnPagination(Expression onPagination) {
		this.onPagination = onPagination;
	}

	public boolean isMultiSelect() {
		return multiSelect;
	}

	public void setMultiSelect(boolean multiSelect) {
		this.multiSelect = multiSelect;
	}

	public boolean isHalfEditable() {
		return halfEditable;
	}

	public void setHalfEditable(boolean halfEditable) {
		this.halfEditable = halfEditable;
	}

	public String getFormViewPageCode() {
		return formViewPageCode;
	}

	public void setFormViewPageCode(String formViewPageCode) {
		this.formViewPageCode = formViewPageCode;
	}

	public Expression getOnSort() {
		return onSort;
	}

	public void setOnSort(Expression onSort) {
		this.onSort = onSort;
	}

	@Override
	public String getType() {
		// TODO Auto-generated method stub
		return "table";
	}
}
